package zl.proxy;

public class BookFacadeTest {

	public static void main(String[] args){
		JdkProxy jp = new JdkProxy();
		BookFacade bf = (BookFacade)jp.getInstance(new BookFacadeImpl1());
		bf.addBook();
		System.out.println("============================");
		CglibProxy cp = new CglibProxy();
		BookFacadeImpl2 bfi = (BookFacadeImpl2)cp.getInstance(BookFacadeImpl2.class);
		bfi.addBook();
	}
	
}
